import '../../util/http.dart';
import 'package:flutter/material.dart';

class InventoryApi{

  BuildContext? context;

  static InventoryApi of(BuildContext? context){
    InventoryApi inventoryApi = InventoryApi();
    inventoryApi.context = context;
    return inventoryApi;
  }
  
  /// 修改站点或托盘
  Future<dynamic> modifyStationOrContainer(data) async{
    return ApiService.of(context).put('lgs/inventory/modifyStationOrContainer', data);
  }

  Future<dynamic> removeStationOrContainer(String code, String isFlag) async{
    return ApiService.of(context).delete('lgs/inventory/removeStationOrContainer/'+code+"/"+isFlag);
  }
}